package com.chris.easymallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chris.common.utils.PageUtils;
import com.chris.easymallproduct.dto.AttrGroupAddDto;
import com.chris.easymallproduct.dto.AttrGroupWithAttrsDto;
import com.chris.easymallproduct.dto.AttrRelationDto;
import com.chris.easymallproduct.entity.AttrEntity;
import com.chris.easymallproduct.entity.AttrGroupEntity;
import com.chris.easymallproduct.vo.AttrGroupInfoVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author chris
 * @email wysiwyg7@163.com
 * @date 2022-08-14 19:42:02
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageById(Map<String, Object> params, Long id);

    void save(AttrGroupAddDto attrGroup);

    AttrGroupInfoVo info(Long attrGroupId);

     void getCatelogPath(Long catelogId, List<Long> catelogPaths);

    List<AttrEntity> attrRelationInfo(Long id);

    void attrRelationDelete(AttrRelationDto[] deleteDtos);

    PageUtils noattrRelation(Map<String, Object> params,Long id);

    void attrRelation(AttrRelationDto[] deleteDtos);

    List<AttrGroupWithAttrsDto> attrGroupWithAttrs(Long catelogId);

}

